package com.lzc.test.svc.serviceImpl;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lzc.test.common.Constant;
import com.lzc.test.dao.ApplyTerminalMapper;
import com.lzc.test.entity.ApplyTerminal;
import com.lzc.test.svc.service.GetApplyTerminal;

@Service
@Transactional
public class GetApplyTerminalImpl implements GetApplyTerminal {

	@Resource
	private ApplyTerminalMapper applyTerminalMapper;
	
	@Resource
	private Constant constant;
	
	@SuppressWarnings("rawtypes")
	public Map getApplyTerminal(String applyId) {
		String key = constant.getProperties("key");
		String key2 = constant.getProperties("key2");
		ApplyTerminal applyTerminal = applyTerminalMapper.selectByPrimaryKey(applyId);
		Map<String, Object> map = new HashMap<>();
		map.put("applyTerminal", applyTerminal);
		map.put("key", key);
		map.put("key2", key2);
		return map;
	}
	
}
